﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xinkui.Entity.AutoGenerator;
using DataFrameworkAccess;
using Xinkui.Common;

namespace Xinkui.DataAccess.AutoGenerator {
    public partial class CompanyCertificateDataAccess {
        public List<CompanyCertificate_Entity> CompanyCertificate_ListByCompany(int companyId) {
            try {

                DataCommand cmd = DataCommandManager.GetDataCommand("CompanyCertificate_ListByCompany");
                cmd.SetParameterValue("@CompanyId", companyId);
                List<CompanyCertificate_Entity> pageList = cmd.ExecuteEntityList<CompanyCertificate_Entity>();
                return pageList;
            }
            catch (Exception ex) {
                ExceptionHelper.ProcessException(ex);
            }

            return new List<CompanyCertificate_Entity>(0);

        }
    }
}
